channel<T>
channel channel<T>
Methods
close
pub fn close(self)
Closes the channel.
close
pub fn close(self)
Closes the channel.
Closes the channel.
Checks if the channel is closed.
Checks if the channel is closed.
Checks if the channel is closed.
Tries to receive a value from the channel.
Tries to receive a value from the channel.
Tries to receive a value from the channel.
Returns T
if a value was received, nil
if the channel is empty.
Tries to send a value to the channel.
Tries to send a value to the channel.
Tries to send a value to the channel.
Returns true
if the value was sent successfully, false
if the channel is full.
Receives a value from the channel.
Receives a value from the channel.
Receives a value from the channel.